package csc.daonjpa.java.service;

import org.springframework.beans.factory.annotation.Autowired;

import csc.daonjpa.java.dao.BaseInfoDAO;
import csc.daonjpa.java.domain.BaseInfo;

public class BaseInfoService {
	private BaseInfoDAO baseInfoDAO;

	public BaseInfoDAO getBaseInfoDAO() {
		return baseInfoDAO;
	}
	@Autowired
	public void setBaseInfoDAO(BaseInfoDAO baseInfoDAO) {
		this.baseInfoDAO = baseInfoDAO;
	}
	
	public boolean updateBaseInfo (Double availableAmount, Long id) {
		return baseInfoDAO.updateBaseInfo(availableAmount, id);
		
	}
	public BaseInfo getBaseInfo(Long id) { 
		return baseInfoDAO.getBaseInfo(id);
		
	}
}
